﻿/// <reference path="../d.ts/requirejs/index.d.ts" />
/// <reference path="../d.ts/durandal/index.d.ts" />
/// <reference path="../d.ts/jquery/index.d.ts" />

var config: RequireConfig = {};

config.paths = {
    'text': '../lib/require/text',
    'durandal': '../lib/durandal/js',
    'plugins': '../lib/durandal/js/plugins',
    'transitions': '../lib/durandal/js/transitions',
    'knockout': '../lib/knockout/knockout-3.4.1',
    'jquery': '../lib/jquery/jquery-1.9.1'
}

requirejs.config(config);

define(function (require: any) {
    var system: DurandalSystemModule = require('durandal/system'),
        app: DurandalAppModule = require('durandal/app');
    //system.debug(true);
    app.title = 'Durandal Starter Kit';
    app.configurePlugins({
        router: true,
        dialog: true
    });
    app.start().then(function () {
        app.setRoot('shell');
    });
});